// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import httpRequest from "./utils/httpRequest"
import vueCookie from "vue-cookie"
import Cookie from "cookie"
import develop from "../static/config/index-dev"
import init from "../static/config/init"
import { getMemberInfo, checkLogin } from './utils/util';


Vue.use(vueCookie)
Vue.use(Cookie)
Vue.use(ElementUI)
Vue.config.productionTip = false

Vue.prototype.$http = httpRequest
Vue.prototype.$memberInfo = getMemberInfo    // 获取用户信息
Vue.prototype.$isLogin = checkLogin    // 校验用户是否登录，某些页面使用




new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
